// import navbar from '../views/bar/navbar.vue'
// import tabbar from '../views/bar/tabbar.vue'
import SiteLayout from '../layout/index.vue'
import FileMan from '../views/file/FileMan.vue'
import Search from '../views/file/Search.vue'
import Bin from '../views/file/bin.vue'
import Login from '../views/login/Login.vue'
import orgMan from '../views/person/orgMan.vue'
import divMan from '../views/person/divMan.vue'
import staffMan from '../views/person/staffMan.vue'
import date from "../views/date/divDate.vue"


const routes = [{
        path: '/',
        redirect: '/login',
    },

    {
        path: '/login',
        component: () => import('../views/login/login.vue')
    },
    {
        path: '/',
        component: () => import('../layout/index.vue'),

        children: [{
                path: '/home',
                component: () => import('../views/home/index.vue')
            },
            {
                path: '/process',
                component: () => import('../views/process/process.vue')
            },
            {
                path: '/afr',
                component: () => import('../views/process/afr.vue')
            },
            {
                path: '/afrcheck',
                component: () => import('../views/process/afrcheck.vue')
            },
            {
                path: '/mail',
                component: () => import('../views/msg/mail.vue')
            },
            {
                path: '/fileMan',
                name: '文档管理',
                component: FileMan
            },
            {
                path: '/Search',
                name: '文件搜索',
                component: Search
            },
            {
                path: '/Bin',
                name: '回收站',
                component: Bin
            },
            {
                path: '/orgMan',
                component: orgMan,
            },
            {
                path: '/divMan',
                component: divMan,
            },
            {
                path: '/staffMan',
                component: staffMan,
            },
            {
                path: '/adeSta',
                component: () => import('../views/adeMan/adeSta.vue')
            },
            {
                path: '/adeHistory',
                component: () => import('../views/adeMan/adeHistory.vue')
            },
            {
                path:'/loginLog',
                component: ()=>import('../views/system/loginLog.vue'),
            },
            {
                path:'/menu',
                component: ()=>import('../views/system/menu.vue'),
            },
            {
                path:'/opeLog',
                component: ()=>import('../views/system/opeLog.vue'),
            },
            {
                path:'/roleMan',
                component: ()=>import('../views/system/roleMan.vue'),
            },
            {
                path: '/divDate',
                component: () => import('../views/date/divDate.vue')
            },
        ],
    },
]

export default routes
